package cn.java75.sp.entity;

import org.springframework.security.core.GrantedAuthority;

/**
 * @author oldliu
 * @since 1.0
 */
public class RoleRight implements GrantedAuthority {
    private int id;
    private int roleid;
    private String right;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getRoleid() {
        return roleid;
    }

    public void setRoleid(int roleid) {
        this.roleid = roleid;
    }

    public String getRight() {
        return right;
    }

    public void setRight(String right) {
        this.right = right;
    }

    @Override
    public String getAuthority() {
        return this.right;
    }
}
